local joy__yinshi = fk.CreateSkill {

  name = "joy__yinshi",

  tags = { Skill.Compulsory, },

}



joy__yinshi:addEffect(fk.DamageInflicted, {
  name = "joy__yinshi",
  anim_type = "defensive",
  frequency = Skill.Compulsory,
  events = {fk.DamageInflicted},
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(joy__yinshi.name) and target == player and (data.damageType ~= fk.NormalDamage or (data.card and data.card.type == Card.TypeTrick)) and (player:getMark("@@joy__dragon_mark") == 0 or player:getMark("@@joy__phoenix_mark") == 0) and #player:getEquipments(Card.SubtypeArmor) == 0
  end,
  on_use = Util.TrueFunc,
})

return joy__yinshi